// const buf1 = Buffer.alloc(10);

// let buf1_len = buf1.write("我是11223");
// // 汉字3个字节其他2个
// console.log(buf1);
// console.log('写入的字节数: '+buf1_len);
// console.log(buf1.toString());
// console.log(buf1.toString('utf8',0,8));

const bufObj = Buffer.from([0x1,0x2]);
const _jsonStr = JSON.stringify(bufObj);
console.log(JSON.parse(_jsonStr).data);
